package cn.esale.entity;

import java.sql.Date;
import java.util.HashSet;
import java.util.Set;

public class SaleOrder implements java.io.Serializable {

	private static final long serialVersionUID = 1056218493209950488L;
	private Long odrId;
	private Long odrCustomerId = 0L;
	private String odrCustomerName;
	private String odrDeliverAddr;
	private Date odrOrderDate = new Date(new java.util.Date().getTime());
	private Date odrDeliverDate = new Date(new java.util.Date().getTime());
	private String odrStatus;
	private Set saleOrderLines = new HashSet(0);

	

	
	public SaleOrder() {
	}

	
	public SaleOrder(Long odrCustomerId, String odrCustomerName,
			String odrDeliverAddr, Date odrDeliverDate, String odrStatus) {
		this.odrCustomerId = odrCustomerId;
		this.odrCustomerName = odrCustomerName;
		this.odrDeliverAddr = odrDeliverAddr;
		this.odrDeliverDate = odrDeliverDate;
		this.odrStatus = odrStatus;
	}

	
	public SaleOrder(Long odrCustomerId, String odrCustomerName,
			String odrDeliverAddr, Date odrOrderDate, Date odrDeliverDate,
			String odrStatus, Set saleOrderLines) {
		this.odrCustomerId = odrCustomerId;
		this.odrCustomerName = odrCustomerName;
		this.odrDeliverAddr = odrDeliverAddr;
		this.odrOrderDate = odrOrderDate;
		this.odrDeliverDate = odrDeliverDate;
		this.odrStatus = odrStatus;
		this.saleOrderLines = saleOrderLines;
	}

	

	public Long getOdrId() {
		return this.odrId;
	}

	public void setOdrId(Long odrId) {
		this.odrId = odrId;
	}

	public Long getOdrCustomerId() {
		return this.odrCustomerId;
	}

	public void setOdrCustomerId(Long odrCustomerId) {
		this.odrCustomerId = odrCustomerId;
	}

	public String getOdrCustomerName() {
		return this.odrCustomerName;
	}

	public void setOdrCustomerName(String odrCustomerName) {
		this.odrCustomerName = odrCustomerName;
	}

	public String getOdrDeliverAddr() {
		return this.odrDeliverAddr;
	}

	public void setOdrDeliverAddr(String odrDeliverAddr) {
		this.odrDeliverAddr = odrDeliverAddr;
	}

	public Date getOdrOrderDate() {
		return this.odrOrderDate;
	}

	public void setOdrOrderDate(Date odrOrderDate) {
		this.odrOrderDate = odrOrderDate;
	}

	public Date getOdrDeliverDate() {
		return this.odrDeliverDate;
	}

	public void setOdrDeliverDate(Date odrDeliverDate) {
		this.odrDeliverDate = odrDeliverDate;
	}

	public String getOdrStatus() {
		return this.odrStatus;
	}

	public void setOdrStatus(String odrStatus) {
		this.odrStatus = odrStatus;
	}

	public Set getSaleOrderLines() {
		return this.saleOrderLines;
	}

	public void setSaleOrderLines(Set saleOrderLines) {
		this.saleOrderLines = saleOrderLines;
	}

}